import {
  WEBAPI,
  PREAPI,
  PROXY
} from '@/settings'
const prefixUrl = '/app/attachment'
const excelPrefixUrl = '/web/building/getSelectBuildingIds'
// 上传
export function getUploadUrl() {
    return  (PROXY ? PREAPI : WEBAPI + PREAPI) + prefixUrl
}

// 删除
export function removeFile(filename) {
    return (PROXY ? PREAPI : WEBAPI + PREAPI) + `/del/${filename}`
}
// 锁位导入楼盘上传楼盘Excel
export function getUploadExcelUrl() {
  return  (PROXY ? PREAPI : WEBAPI + PREAPI) + excelPrefixUrl
}

export function getUrl(){
  return  (PROXY ? PREAPI : WEBAPI + PREAPI) + `/web/media_point/import_common`
}
